package top.jfunc.network.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import top.jfunc.common.http.base.Config;
import top.jfunc.common.http.smart.NativeSmartHttpClient;
import top.jfunc.common.http.smart.SmartHttpClient;

/**
 * @author xiongshiyan at 2019/5/28 , contact me with email yanshixiong@126.com or phone 15208384257
 */
@Configuration
public class SmartHttpClientConfig {
    @Bean
    public SmartHttpClient smartHttpClient(){
        NativeSmartHttpClient nativeSmartHttpClient = new NativeSmartHttpClient();
        nativeSmartHttpClient.setConfig(Config.defaultConfig().setBaseUrl("http://localhost:9999/http-server-test/"));
        return nativeSmartHttpClient;
    }
}
